package com.aerfazhe.stock.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author：wk
 * @Create：2022/4/10/11:20
 * @Description：TODO
 * @Version：1.0
 */
@RestController
@RequestMapping("/stock")
public class StockController {

    @Value("${server.port}")
    private String port;

    @GetMapping("/reduct")
    public String reduct() {
        System.out.println("扣减库存成功！");
        return "扣减库存成功!:"+port;
    }

}
